//=============================================================================
// XBus 
//-----------------------------------------------------------------------------
// File        : xbus_init.h
// Description : 
// Author      : Ismail Sabry
// Date        : 1/30/2009
//=============================================================================
#ifndef __XBUS_INIT_H__
#define __XBUS_INIT_H__

#include <xbus.h>

//-----------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
typedef struct {
  char            name[XBUS_SIZE_NAME];
  unsigned int    nb_module;
  unsigned int    nb_cell;
  unsigned int    size_cell;
  
  unsigned int    size;  // shm size
  void            *addr; // shm addres

  t_XBUS          *xbus;
} t_XBUS_info;

//-----------------------------------------------------------------------------
// 
//-----------------------------------------------------------------------------
int XBUS_create(t_XBUS_info *info);
int XBUS_remove(t_XBUS_info *info);

int XBUS_init(t_XBUS_info *info);

#endif //__XBUS_INIT_H__
